﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BL
{
	/// <summary>
	///Занятие, проводимое преподавателем (для общего списка)
	/// </summary>
	public class SubjectItem:Entity
	{
        string faculty = "";
		string group="";
		string subject="";
		LessonTypes lessonType;
        string lType = "";

        public string LType
        {
            get { return lType; }
            set { lType = value; }
        }
		int hours=0;

		public SubjectItem()
		{
		}

		public SubjectItem(string faculty, string group, string subject, LessonTypes lessonType, int hours)
		{
            this.faculty = faculty;
			this.group = group;
			this.subject = subject;
			this.lessonType = lessonType;
			this.hours = hours;
		}


        public string Faculty
        {
            get { return faculty; }
            set { faculty = value; }
        }

		public string Group
		{
			get { return group; }
			set { group = value; }
		}

		public string Subject
		{
			get { return subject; }
			set { subject = value; }
		}

		public LessonTypes LessonType
		{
			get { return lessonType; }
			set { lessonType = value; }
		}

		public int Hours
		{
			get { return hours; }
			set { hours = value; }
		}

		public override string ToString()
		{
            return subject + " " + group +  " " + LessonType.ToString();
		}
	}
}
